import 'package:flutter/material.dart'; // 引入 Flutter 材料库，虽然这里只是为了Icon

void main() {
  final buttons = <({String label, Icon icon, void Function()? onPressed})>[
    (
      label: "Button I",
      icon: const Icon(Icons.upload_file),
      onPressed: () => print("Action -> Button I"),
    ),
    (
      label: "Button II",
      icon: const Icon(Icons.info),
      onPressed: () => print("Action -> Button II"),
    ),
  ];

  // 打印按钮信息
  for (var button in buttons) {
    print(
      'Label: ${button.label}, Icon: ${button.icon}, onPressed: ${button.onPressed}',
    );
  }
}
